<!--
  
   ShipEditor.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<local:EditorBase x:Class="Supremacy.Editor.ShipEditor"
             xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
             xmlns:s="clr-namespace:Supremacy.Client;assembly=SupremacyWPF"
             xmlns:local="clr-namespace:Supremacy.Editor"
             xmlns:tech="clr-namespace:Supremacy.Tech;assembly=SupremacyCore"
             xmlns:econ="clr-namespace:Supremacy.Economy;assembly=SupremacyCore"
             xmlns:orbitals="clr-namespace:Supremacy.Orbitals;assembly=SupremacyCore"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <WrapPanel Orientation="Horizontal">

    <Grid Margin="12,0,0,12">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>

      <Label Grid.Column="0"
             Grid.Row="0"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Class Name:"/>
      <TextBox Grid.Column="1"
               Grid.Row="0"
               Margin="2,3,2,3"
               Width="128"
               HorizontalAlignment="Left"
               Text="{Binding Path=ClassName}"/>

      <Label Grid.Column="0"
             Grid.Row="1"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Ship Type:"/>
      <ComboBox x:Name="ShipTypeList"
                Grid.Column="1"
                Grid.Row="1"
                Margin="2,3,2,3"
                Width="128"
                HorizontalAlignment="Left"
                SelectedItem="{Binding Path=ShipType, Mode=TwoWay}">
        <ComboBox.Resources>
          <DataTemplate DataType="{x:Type orbitals:ShipType}">
            <ContentPresenter Content="{Binding Converter={StaticResource AltEnumStringConverter}, ConverterParameter=ShipType}"/>
          </DataTemplate>
        </ComboBox.Resources>
      </ComboBox>

      <Label Grid.Column="0"
             Grid.Row="2"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Speed:"/>
      <TextBox Grid.Column="1"
               Grid.Row="2"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=Speed}"/>

      <Label Grid.Column="0"
             Grid.Row="3"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Range:"/>
      <TextBox Grid.Column="1"
               Grid.Row="3"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=Range}"/>

      <Label Grid.Column="0"
             Grid.Row="4"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Dilithium:"/>
      <TextBox Grid.Column="1"
               Grid.Row="4"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=Dilithium}"/>
    </Grid>

    <Grid Margin="12,0,0,12">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>

      <Label Grid.Column="0"
             Grid.Row="0"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Intercept Ability:"/>
      <TextBox Grid.Column="1"
               Grid.Row="0"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=InterceptAbility}"/>

      <Label Grid.Column="0"
             Grid.Row="1"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Raid Ability:"/>
      <TextBox Grid.Column="1"
               Grid.Row="1"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=RaidAbility}"/>

      <Label Grid.Column="0"
             Grid.Row="2"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Fuel Capacity:"/>
      <TextBox Grid.Column="1"
               Grid.Row="2"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=FuelCapacity}"/>

      <Label Grid.Column="0"
             Grid.Row="3"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Cloak Strength:"/>
      <TextBox Grid.Column="1"
               Grid.Row="3"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=CloakStrength}"/>
    </Grid>


    <Grid Margin="12,0,0,12">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>

      <Label Grid.Column="0"
             Grid.Row="0"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Maneuverability:"/>
      <TextBox Grid.Column="1"
               Grid.Row="0"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=Maneuverability}"/>

      <Label Grid.Column="0"
             Grid.Row="1"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Evacuation Limit:"/>
      <TextBox Grid.Column="1"
               Grid.Row="1"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=EvacuationLimit}"/>

      <Label Grid.Column="0"
             Grid.Row="2"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Work Capacity:"/>
      <TextBox Grid.Column="1"
               Grid.Row="2"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=WorkCapacity}"/>

      <Label Grid.Column="0"
             Grid.Row="3"
             Margin="0,3,2,3"
             FontWeight="Bold"
             Content="Population Health:"/>
      <TextBox Grid.Column="1"
               Grid.Row="3"
               Margin="2,3,2,3"
               Width="64"
               HorizontalAlignment="Left"
               Text="{Binding Path=PopulationHealth}"/>
    </Grid>


  </WrapPanel>

</local:EditorBase>
